/*
 * @Description: 
 * @Version: 0.0.0
 * @Autor: 源
 * @Date: 2022-10-21 11:29:22
 * @LastEditors: 源
 * @LastEditTime: 2022-11-01 10:06:56
 * @FilePath: \pnpm-v3-ts-ui\docs\.vitepress\theme\index.ts
 */
//import DefaultTheme from 'vitepress/theme';
import Layout from './layout.vue';
import laomiUI from 'laomi';
import '@lm/theme-chalk/src/fonts/iconfont.woff';
import lmDome from '../vitepress';
import highlight from '../vitepress/vue/directive/highlight';
import './reset.scss';
import "virtual:svg-icons-register" //svg 注册脚本
export default {
  Layout,
  enhanceApp({ app }) {
    app.use(laomiUI); // vitepress中注册全局组件
    app.directive("highlight", highlight); //安装指令
    lmDome.forEach(Comp => {
      app.component(Comp.name, Comp)
    })
  }
};